﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZSZ.Service.Entity;

namespace ZSZ.Service.EntityConfig
{
    class UserConfig: EntityTypeConfiguration<UserEntity>
    {
        public UserConfig() {
            this.ToTable("T_User");
            this.HasRequired(u=>u.City).WithMany().HasForeignKey(u=>u.CityId);
        }
    }
}
